{* Template Name:首页及列表页 *}
{template:header}
<body class="multi {$type}">
<div id="divAll">
<div id="divPage">
<div class="divBox">
<div id="divTop">
  {php}
  if($zbp->Config('um_free')->logo){
    $logo = $zbp->Config('um_free')->logo;
  }else{
    $logo = $host."zb_users/theme/".$theme."/style/images/logo.png";
  }
  {/php}
  <h1 class="logo"> <a href="{$host}" title="{$name}" rel="home"><img src="{$logo}" alt="{$name}">{$name}</a> </h1>
</div>
</div>
{if $zbp->Config('um_free')->bn}
{php}
  if($zbp->Config('um_free')->banner){
    $banner = $zbp->Config('um_free')->banner;
  }else{
    $banner = $host."zb_users/theme/".$theme."/style/images/bg.jpg";
  }
{/php}
<div class="divBanner" style="background:url('{$banner}') no-repeat 50% 50%; background-size:cover; width:100%;"></div>
{/if}
<div id="divNavBar">
 <div class="divWarp">
  <ul>
    {module:navbar}
  </ul>
 </div>
</div>
<div class="divWarp">
<div id="divMain"> {foreach $articles as $article}
  
  {if $article.IsTop}
  {template:post-istop}
  {else}
  {template:post-multi}
  {/if}
  
  {/foreach}
  <div class="pagebar">{template:pagebar}</div>
</div>
<div id="divSidebar"> {template:sidebar} </div>
{template:footer} 
